﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Retirement_retirement : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HyperLink retirementHpyerLink = this.Master.FindControl("hyplRetirement") as HyperLink;
        retirementHpyerLink.BackColor = System.Drawing.ColorTranslator.FromHtml("#DE5635");

        Panel userPanel = this.Master.FindControl("ContentPlaceHolder").FindControl("submenu_user") as Panel;
        Panel adminPanel = this.Master.FindControl("ContentPlaceHolder").FindControl("submenu_admin") as Panel;
        Panel publicPanel = this.Master.FindControl("ContentPlaceHolder").FindControl("submenu_public") as Panel;
        

        if ("CUST".Equals(Session["USER_ROLE"]))
        {
            userPanel.Visible = true;
            adminPanel.Visible = false;
            publicPanel.Visible = false;
        }
        else if ("ADMIN".Equals(Session["USER_ROLE"]))
        {
            userPanel.Visible = false;
            adminPanel.Visible = true;
            publicPanel.Visible = false;

        }else
        {
            userPanel.Visible = false;
            adminPanel.Visible = false;
            publicPanel.Visible = true;
        }

    }
}
